package com.han.fu.api.business.model.ao;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 用户修改密码信息
 *
 * @author: star.zhu
 * @date: 2021-08-06
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class ChangePasswordAo {

    /**
     * 客户ID
     */
    @NotNull(message = "客户ID不能为空")
    private Integer id;

    /**
     * 旧密码(需BASE64编码)
     */
    @Size(max = 50, message = "旧密码最长不能超过50")
    @NotBlank(message = "旧密码不能为空")
    private String password;

    /**
     * 密码(需BASE64编码)
     */
    @Size(max = 50, message = "新密码最长不能超过50")
    @NotBlank(message = "新密码不能为空")
    private String newPassword;

    /**
     * 确认密码(需BASE64编码)
     */
    @Size(max = 50, message = "确认密码最长不能超过50")
    @NotBlank(message = "确认密码不能为空")
    private String confirmPassword;

}
